#ifndef _MY_IOSTM8S_H_
#define _MY_IOSTM8S_H_
#include "my_io_macros.h"
#include "io_macros.h"

/* ADC data register */
__IO_REG16    (ADC_DR,   0x5404, __READ);
/* ADC data buffer registers */
__IO_REG16    (ADC_DB0R,   0x53E0, __READ);
__IO_REG16    (ADC_DB1R,   0x53E2, __READ);
__IO_REG16    (ADC_DB2R,   0x53E4, __READ);
__IO_REG16    (ADC_DB3R,   0x53E6, __READ);
__IO_REG16    (ADC_DB4R,   0x53E8, __READ);
__IO_REG16    (ADC_DB5R,   0x53EA, __READ);
__IO_REG16    (ADC_DB6R,   0x53EC, __READ);
__IO_REG16    (ADC_DB7R,   0x53EE, __READ);
__IO_REG16    (ADC_DB8R,   0x53F0, __READ);
__IO_REG16    (ADC_DB9R,   0x53F2, __READ);

/* TIM1 counter */
__IO_REG16    (TIM1_CNTR,  0x525E, __READ_WRITE);

/* TIM2 counter */
__IO_REG16    (TIM2_CNTR,  0x530C, __READ_WRITE);

#endif
